package com.hp.cglib;

import com.hp.staticproxy.CellphoneFactory;
import com.hp.staticproxy.CellphoneSales;

public class TestCGLib {

    public static void main(String[] args) {
        CellphoneSales phoneFactory = new CellphoneFactory();
        CGlibProxy proxy = new CGlibProxy();
        CellphoneSales phoneProxy = (CellphoneSales) proxy.newProxyInstance(phoneFactory);
        phoneProxy.sell("华为");
    }
}
